#ifndef _SHELL_MAILBEAN_BEAN_H_
#define _SHELL_MAILBEAN_BEAN_H_

#include "Beans.h"
#include "Message.h"
#include <vector>
using namespace std;
class MailBean : public Bean
{
	public:
	MailBean();
	~MailBean();
	void reset();
	MailBean* clone();
	//邮件id
	int64 mailId;
	//标题
	string title;
	//内容
	string content;
	//邮件物品

	vector<GoodsBean*> goodsBean;
	//是否已读0未读1已读
	int8 isRead;
	//获得邮件时间
	string createTime;
	
	bool read_from(ByteBuf& buf);
	bool write_to(ByteBuf& buf);
};

#endif
